// 文章相关接口

import type { ResArticleDetail } from '@/types/article'
import http from '@/utils/http'

enum API {
  // 获取文章详情
  ARTICLE_DETAIL = '/article/articleDetail'
}

/**
 * 获取文章详情
 * @param id 文章 id
 * @returns
 */
export const reqArticleDetail = (id: number) => {
  return http.get<any, ResArticleDetail>(API.ARTICLE_DETAIL, { params: { id } })
}
